
fact = 1
for n in range(1, 101):
    fact *= n
print sum(map(int, str(fact)))
